
package com.ruoyi.market.domain;

import com.ruoyi.common.core.domain.BaseEntity;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

import javax.validation.constraints.NotBlank;

/**
 * 店铺支付配置对象 configPay
 *
 * @author ruoyi
 */
public class ConfigPay extends BaseEntity {
    private static final long serialVersionUID = 1L;

    /* 店铺ID */
    private String shopId;

    // 微信商户号ID
    private String wxMchId;

    // 微信商户密钥
    private String wxMchSecret;

    // 微信p12格式的cert证书
    private String wxTwelveCertBook;

    // 微信pem格式的cert证书
    private String wxPemCertBook;

    // 微信key证书
    private String wxKeyBook;

    public ConfigPay() {

    }

    public ConfigPay(String shopId) {
        this.shopId = shopId;
    }

    @NotBlank(message = "店铺ID不能为空")
    public String getShopId() {
        return shopId;
    }

    public void setShopId(String shopId) {
        this.shopId = shopId;
    }

    public String getWxMchId() {
        return wxMchId;
    }

    public void setWxMchId(String wxMchId) {
        this.wxMchId = wxMchId;
    }

    public String getWxMchSecret() {
        return wxMchSecret;
    }

    public void setWxMchSecret(String wxMchSecret) {
        this.wxMchSecret = wxMchSecret;
    }

    public String getWxTwelveCertBook() {
        return wxTwelveCertBook;
    }

    public void setWxTwelveCertBook(String wxTwelveCertBook) {
        this.wxTwelveCertBook = wxTwelveCertBook;
    }

    public String getWxPemCertBook() {
        return wxPemCertBook;
    }

    public void setWxPemCertBook(String wxPemCertBook) {
        this.wxPemCertBook = wxPemCertBook;
    }

    public String getWxKeyBook() {
        return wxKeyBook;
    }

    public void setWxKeyBook(String wxKeyBook) { this.wxKeyBook = wxKeyBook; }

    @Override
    public String toString() {
        return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE)
                .append("shopId", getShopId())
                .append("wxMchId", getWxMchId())
                .append("wxMchSecret", getWxMchSecret())
                .append("wxTwelveCertBook", getWxTwelveCertBook())
                .append("wxPemCertBook", getWxPemCertBook())
                .append("wxKeyBook", getWxKeyBook())
                .append("createBy", getCreateBy())
                .append("createTime", getCreateTime())
                .append("updateBy", getUpdateBy())
                .append("updateTime", getUpdateTime())
                .append("remark", getRemark())
                .toString();
    }
}
